package com.enwei.adapters;

import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;


import java.util.List;

import com.ew.action.R;


public class VideoCommentAdapter extends BaseAdapter {

    private LayoutInflater inflater;
    private List<String> arrays = null;
    private Context mContext;
    public VideoCommentAdapter(List<String> arrays, Context context){
        this.arrays = arrays;
        this.mContext  = context;
        inflater = LayoutInflater.from(context);
    }



    @Override
    public View getView(int position, View convertView, ViewGroup viewGroup) {
        ViewHolder holder = null;
        if(convertView == null){
            convertView = inflater.inflate(R.layout.view_video_detail_comment, null);
            holder = new ViewHolder(convertView);
            convertView.setTag(holder);
        }else{
            holder = (ViewHolder) convertView.getTag();
        }
        onBindViewHolder(holder,position);
        return convertView;
    }

    @Override
    public int getCount() {
        return arrays.size();
    }

    @Override
    public Object getItem(int i) {
        return null;
    }

    @Override
    public long getItemId(int i) {
        return 0;
    }


    private class ViewHolder {
        public TextView title,description;
        public View chatLayout;

        public ViewHolder(View view) {
        	
        }
    }

    private void onBindViewHolder(ViewHolder holder, int position){
    }

}
